﻿<UserControl x:Class="ThumbGen.BackstageItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             >
    <Grid MinHeight="50">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Image Name="TheIcon" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Margin="10" Width="32" Height="32" Stretch="Uniform"
               Source="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=IconSource}"/>
        <TextBlock Name="TheTitle" Grid.Column="1" Grid.Row="0" Foreground="Black" FontSize="13" Margin="3"
                   Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Title}"/>
        <TextBlock Name="TheText" Grid.Column="1" Grid.Row="1" Foreground="Black" Margin="3"
                   Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Text}"/>
    </Grid>
</UserControl>
